﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyRedis
{
    public interface IRedisManage
    {
        /// <summary>
        /// 获取值
        /// </summary>
        /// <param name="Key"></param>
        /// <returns></returns>
        string GetValue(string Key);
        /// <summary>
        /// 设置值
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <param name="ts"></param>
        void Set(string key, object value, TimeSpan ts);
    }
}
